{include file="header.html"}
<div>
	{include file='yuanxi/nav.html'}
	<form method="post" action="admin.php?m=yuanxi&a=save">
		<input type="hidden" name="id" style="display:none;" value="{$data.id}">
		<table class="table table-bordered">

			<tr>
				<td width="100">上级：</td>
				<td>
					<select name="pid">
						<option value="0">请选择</option>
						{foreach item=c from=$plist}
						<option value="{$c.id}" {if $c.pid eq $data.id}selected="selected" {/if}>{$c.title}</option>
						{/foreach}
					</select>
				</td>
			</tr>

			<tr>
				<td>名称：</td>
				<td>
					{if !$data}
					<textarea class="w600 h200" name="tits"></textarea>
					(多个换行)
					{else}
					<input type="text" name="title" id="title" value="{$data.title}">
					{/if}
					</td>
			</tr>
			{if $data}
			<tr>
				<td>添加时间：</td>
				<td>{$data.dateline|date:Y-m-d H:m}</td>
			</tr>{/if}
			<tr>
				<td></td>
				<td><input type="submit" value="保存" class="btn btn-success"></td>
			</tr>
		</table>
	</form>
</div>
{include file="footer.html"}